//
//  RouteTypeSelectView.m
//  Traveling
//
//  Created by 尹桥印 on 15/6/22.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "RouteTypeSelectView.h"

@implementation RouteTypeSelectView

+(instancetype)selectView{
    return [[[NSBundle mainBundle]loadNibNamed:@"RouteTypeSelectView" owner:nil options:nil] lastObject];
}

- (IBAction)typeBtnClick:(UIButton *)sender {
    if([self.delegate respondsToSelector:@selector(routeTypeSelectWithType:index:)]) {
        if (sender.tag==0) {
            [self.delegate routeTypeSelectWithType:RouteTypeScenic index:self.tag];
        }else{
            [self.delegate routeTypeSelectWithType:RouteTypeHotel index:self.tag];
        }
    }
}

@end
